package com.test03.gbk2utf;

import java.net.URLDecoder;
import java.net.URLEncoder;
/*
 * 这是对链接上的中文进行处理的代码
 * 总结：
 *    1.
 */
public class URLEncodeTest {
	public static void main(String[] args) throws Exception {
		String a = "wang权";
		System.out.println(URLEncoder.encode(a,"utf-8"));
		System.out.println(URLDecoder.decode(URLEncoder.encode(a,"utf-8"),"utf-8"));
	}
}
